]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionSystem: Don't try to make the user extensinons dir if it exists
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 26 Aug 2011 21:33:52 +0000 (17:33 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 26 Aug 2011 21:34:50 +0000 (17:34 -0400)
this removes the "Error invoking Gio.make_directory_with_parents: Error
creating directory: File exists" spam from the Errors tab of the Looking
Glass

js/ui/extensionSystem.js

index 38eeea3ef8a3fa6c63855bf944d7707ff2e3bfb0..5941d934aad1ec959f02ffdab99a116eca0bed5c 100644 (file)
@@ -392,7 +392,8 @@ function init() {
     let userExtensionsPath = GLib.build_filenamev([global.userdatadir, 'extensions']);
     userExtensionsDir = Gio.file_new_for_path(userExtensionsPath);
     try {
-        userExtensionsDir.make_directory_with_parents(null);
+        if (!userExtensionsDir.query_exists(null))
+            userExtensionsDir.make_directory_with_parents(null);
     } catch (e) {
         global.logError('' + e);
     }